package web.fabrimind.bdm.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import web.fabrimind.common.annotation.Excel;
import web.fabrimind.common.core.domain.BaseEntity;

/**
 * 车间管理对象 workshop
 * 
 * @author 智慧
 * @date 2025-03-27
 */
public class Workshop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车间ID */
    private Long workshopId;

    /** 车间名称 */
    @Excel(name = "车间名称")
    private String workshopName;

    /** 车间编号 */
    @Excel(name = "车间编号")
    private String workshopCode;

    /** 车间类型 */
    @Excel(name = "车间类型")
    private String workshopType;

    /** 车间面积 */
    @Excel(name = "车间面积")
    private BigDecimal area;

    /** 车间主管ID */
    @Excel(name = "车间主管ID")
    private Long managerId;

    /** 车间状态 */
    @Excel(name = "车间状态")
    private String status;

    /** 生产线管理信息 */
    private List<ProductionLine> productionLineList;

    public void setWorkshopId(Long workshopId) 
    {
        this.workshopId = workshopId;
    }

    public Long getWorkshopId() 
    {
        return workshopId;
    }
    public void setWorkshopName(String workshopName) 
    {
        this.workshopName = workshopName;
    }

    public String getWorkshopName() 
    {
        return workshopName;
    }
    public void setWorkshopCode(String workshopCode) 
    {
        this.workshopCode = workshopCode;
    }

    public String getWorkshopCode() 
    {
        return workshopCode;
    }
    public void setWorkshopType(String workshopType) 
    {
        this.workshopType = workshopType;
    }

    public String getWorkshopType() 
    {
        return workshopType;
    }
    public void setArea(BigDecimal area) 
    {
        this.area = area;
    }

    public BigDecimal getArea() 
    {
        return area;
    }
    public void setManagerId(Long managerId) 
    {
        this.managerId = managerId;
    }

    public Long getManagerId() 
    {
        return managerId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<ProductionLine> getProductionLineList()
    {
        return productionLineList;
    }

    public void setProductionLineList(List<ProductionLine> productionLineList)
    {
        this.productionLineList = productionLineList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workshopId", getWorkshopId())
            .append("workshopName", getWorkshopName())
            .append("workshopCode", getWorkshopCode())
            .append("workshopType", getWorkshopType())
            .append("area", getArea())
            .append("managerId", getManagerId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("productionLineList", getProductionLineList())
            .toString();
    }
} 